;; python3 jedi
;; mkdir -p ~/.emacs.d/.python-environments
;; virtualenv -p /usr/bin/python3  --prompt="<venv:jedi>" jedi
;; pip install --upgrade ~/.emacs.d/elpa/jedi-core-20170319.2107/
;; (add-hook 'python-mode-hook 'jedi:setup)
;; (setq jedi:complete-on-dot t)
;; (setq jedi:environment-root "jedi")
;; (setq jedi:server-command (jedi:-env-server-command))
;; (setq jedi:use-shortcuts t)
;; (message "jedi:server-command is %S" jedi:server-command)

;; pep8
;; (add-hook 'python-mode-hook 'py-autopep8-enable-on-save)
;; (setq py-autopep8-options '("--max-line-length=100"))

(defun my-python-mode-config ()
  (setq python-indent-offset 4
        python-indent 4
        indent-tabs-mode nil
        default-tab-width 4)
  (hs-minor-mode t)
  (auto-fill-mode 0)
  (whitespace-mode t)
  (hl-line-mode t)
  (pretty-symbols-mode t)
  (flycheck-mode t))

(add-to-list 'auto-mode-alist '("\\.py\\'" . python-mode))
(add-to-list 'auto-mode-alist '("SConstruct" . python-mode))
(add-hook 'python-mode-hook 'my-python-mode-config)

;; damacs-python end
(provide 'damacs-python)
